﻿using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Data {
    /// <summary>
    /// 账单分润表：mc_Profit
    /// </summary>
    public partial class Profit {
        public Profit() { }
        public long Id { get; set; }
        /// <summary>
        /// 订单id
        /// </summary>
        public long OrderId { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public long MerchantId { get; set; }
        /// <summary>
        /// 分佣金额
        /// </summary>
        public decimal Amount { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public long ProductId { get; set; }
        /// <summary>
        /// 商品规格id
        /// </summary>
        public long? SkuId { get; set; }
        /// <summary>
        /// 支付id
        /// </summary>
        public long? PayId { get; set; }
        /// <summary>
        /// 业务类型
        /// </summary>
        public TokenBillType TokenBillType { get; set; }
        /// <summary>
        /// 账单类型
        /// </summary>
        public BillType BillType { get; set; }
        /// <summary>
        /// 账单状态
        /// </summary>
        public BillStatus BillStatus { get; set; }
        /// <summary>
        /// 是否业绩
        /// </summary>
        public bool IsBus { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public long CreateTime { get; set; }
        /// <summary>
        /// 版本
        /// </summary>
        public int Version { get; set; }
        /// <summary>
        /// 商户
        /// </summary>
        public virtual Merchant Merchant { get; set; }

        public virtual Order Order { get; set; }
        public virtual Product Product { get; set; }
    }
}
